package com.example.xiyan.jane.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 首页
 *
 * @author xiyan
 * @date 2018/02/12
 */
@Controller
public class IndexController {
    @GetMapping()
    public String index(Model model) {
        model.addAttribute("name","jane");
        return "index";
    }
}
